package com.yxq.mdt.app.modules.login.presenter;


import com.yxq.mdt.app.base.ibase.IBaseContract;
import com.yxq.mdt.app.modules.login.bean.UserBean;

/**
 * ================================================
 *
 * @function 连接View和Model层的接口方法，在Presenter中实现
 * Created by yd on 2019/03/26.
 * ================================================
 */
public interface ILoginContract extends IBaseContract {
    interface View extends IBaseView {


        void onLoginSuccess(UserBean userBean);

        void onLoginFailed(String error);

        void onVerifyCodeSuccess(String info);

        void onVerifyCodeFailed(String error);

        void onRegisterSuccess(String userBean);

        void onRegisterFailed(String error);

        void onBindPhoneSuccess(String userBean);

        void onBindPhoneFailed(String error);
    }


    interface Presenter extends IBasePresenter {

        void login(String account, String password);

    }
}
